﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpMap.Rendering.Rendering2D;
using System.Windows.Media;
namespace SharpMap.Wpf.Rendering
{
    public class WpfSymbol2D : Symbol2D
    {
       public WpfSymbol2D(Size2D size)
            : base(size) { }

        /// <summary>
        /// Creates a new symbol with the given <paramref name="symbolData">data</paramref>
        /// and <paramref name="size"/>.
        /// </summary>
        /// <param name="symbolData">The data which encodes this symbol.</param>
        /// <param name="size">The base size of the symbol.</param>
       public WpfSymbol2D(Stream symbolData, Size2D size)
            : base(symbolData, size)
        {
        }

       public WpfSymbol2D(Size2D size, DrawingImage imageSource)
           :base(size)
       {
           _imageSource = imageSource;
       }

       protected override SharpMap.Rendering.Symbol<Point2D, Size2D> CreateNew(Size2D size)
       {
           return new WpfSymbol2D(size);
       }

       public DrawingImage ImageSource
       {
           get { return _imageSource; }
           set { _imageSource = value; }
       }

       DrawingImage _imageSource;
    }
}
